# vim:set noet ts=4:
#
# ibust - IBus with Traditional interface
#
# Copyright (c) 2013 Daniel Sun
# Copyright (c) 2007-2010 Peng Huang <shawn.p.huang@gmail.com>
# Copyright (c) 2007-2010 Red Hat, Inc.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this program; if not, write to the
# Free Software Foundation, Inc., 59 Temple Place, Suite 330,
# Boston, MA  02111-1307  USA

ibustsetup_PYTHON = \
	main.py \
	i18n.py \
	icon.py \
	enginecombobox.py \
	enginetreeview.py \
	engineabout.py \
	keyboardshortcut.py \
	$(NULL)

ibustsetup_DATA = \
	setup.ui \
	$(NULL)

bin_SCRIPTS = ibust-setup
ibustsetupdir = $(pkgdatadir)/setup

desktop_in_files = ibust-setup.desktop.in
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
desktopdir = $(datadir)/applications
@INTLTOOL_DESKTOP_RULE@

CLEANFILES = \
	*.pyc \
	ibust-setup \
	$(NULL)

EXTRA_DIST = \
	ibust-setup.in \
	setup.ui \
	ibust-setup.desktop.in \
	$(NULL)

DISTCLEANFILES = \
	$(desktop_DATA) \
	$(NULL)

test:
	$(ENV_IBUST_TEST) \
		PYTHONPATH=$(top_srcdir) \
		IBUST_PREFIX="@prefix@" \
		IBUST_LOCALEDIR="@localedir@" \
		$(PYTHON) \
		$(srcdir)/main.py

-include $(top_srcdir)/git.mk
